import 'package:fish_redux/fish_redux.dart';
import 'package:member_center_sdk_example/pages/members/login/sms/state.dart';
import 'package:member_center_sdk_example/pages/members/login/state.dart';

class SmsLoginConnector extends ConnOp<MemberLoginState, SmsLoginState> {
  SmsLoginState _subState = SmsLoginState( );

  @override
  SmsLoginState get(MemberLoginState state) {
    _subState.userNameController.text = state.defaultUserName;
    return _subState;
  }

  @override
  void set(MemberLoginState state, SmsLoginState subState) {
    _subState = subState;
  }
}
